<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller'] = 'main/index';
$route['404_override'] = '';

/*admin*/
$route['index'] = 'main/index';

$route['home'] = 'main/index';

$route['admin'] = 'admin/index';
$route['admin/signup'] = 'admin/signup';
$route['admin/create_member'] = 'admin/create_member';
$route['admin/login'] = 'admin/index';
$route['admin/logout'] = 'admin/logout';
$route['admin/login/validate_credentials'] = 'admin/validate_credentials';

$route['admin/station_tv'] = 'admin_station_tv/index';
$route['admin/station_tv/add'] = 'admin_station_tv/add';
$route['admin/station_tv/update'] = 'admin_station_tv/update';
$route['admin/station_tv/update/(:any)'] = 'admin_station_tv/update/$1';
$route['admin/station_tv/delete/(:any)'] = 'admin_station_tv/delete/$1';
$route['admin/station_tv/(:any)'] = 'admin_station_tv/index/$1'; //$1 = page number

$route['admin/country'] = 'admin_country/index';
$route['admin/country/add'] = 'admin_country/add';
$route['admin/country/update'] = 'admin_country/update';
$route['admin/country/update/(:any)'] = 'admin_country/update/$1';
$route['admin/country/delete/(:any)'] = 'admin_country/delete/$1';
$route['admin/country/(:any)'] = 'admin_country/index/$1'; //$1 = page number

$route['admin/fitur'] = 'admin_fitur/index';
$route['admin/fitur/add'] = 'admin_fitur/add';
$route['admin/fitur/update'] = 'admin_fitur/update';
$route['admin/fitur/update/(:any)'] = 'admin_fitur/update/$1';
$route['admin/fitur/delete/(:any)'] = 'admin_fitur/delete/$1';
$route['admin/fitur/(:any)'] = 'admin_fitur/index/$1'; //$1 = page number

$route['admin/masukan'] = 'admin_fitur/index';

$route['contact'] = 'admin_contact/index';
$route['contact/add'] = 'admin_contact/add';

$route['about_us'] = 'admin_contact/index';

$route['sponsor'] = 'admin_contact/index';

/* End of file routes.php */
/* Location: ./application/config/routes.php */